//�ڶ��� �ַ�ıȽϣ���ӡ����Ľ��
package interview.xunlei;

public class StringCompare {    
    public static void main(String[] arg)
    {
       String a="www";
       String b=a;
       String c=new String("www");String d=new String(a);//���ȥ�Ƚ�����
       System.out.print((a==b)+" ");
       System.out.print((a==c)+" ");
       System.out.print((b==c)+" ");
       System.out.print((a.equals(c)));
    }
}